package id.co.rho.scoring.cid.framework.math.evaluator.model;

import java.math.BigDecimal;

/**
 * Created by IntelliJ IDEA.
 * User: bungrudi
 * Date: 9/14/11
 * Time: 12:03 PM
 */
public class LeafValueNode implements MEValueNode {
    public String varName;
    public BigDecimal value;

    private LeafValueNode() {
    }

    public LeafValueNode(String varName) {
        this.varName = varName;
    }

    public LeafValueNode(BigDecimal value) {
        this.value = value;
    }

    public String getVarName() {
        return varName;
    }

    public BigDecimal getValue() {
        return value;
    }

    @Override
    public MEValueNode[] getChildren() {
        return null;
    }
}
